Skip to content

Video: Validate runtime PM and driver rebind recovery - #707

Draft
Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:video-lifecycle-validation
Draft

Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:video-lifecycle-validation

Conversation

@smuppand

@smuppand Srikanth Muppandam (smuppand) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Add focused runtime-PM and driver-rebind decode tests. Use the existing native FFmpeg verifier to establish a working baseline and identify the hardware actually used, then require correct decoded frames on the same device after the lifecycle operation.

Runtime-PM validation leaves policy unchanged, observes suspend and requires active-time accounting to advance during the recovered decode. Driver rebind requires explicit opt-in and an isolated target, refuses existing device users, checks node teardown/re-registration and restores only its original binding on failure or interruption. No firmware files are moved and no drivers are selected from board names.

Depends on Video_Codec_Quality and shared lifecycle helpers from #643, without duplicating them. Optional image-provided prerequisites skip when absent. A previously supported decode becoming unavailable after mutation fails.

Validation: 43 host controls cover normal recovery, unsupported PM, busy devices, malformed/missing child results, changed device identity, unbind/bind failures, node renumbering, failed resume accounting, genuine kernel faults and cleanup. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Source walkthrough covered qualcomm-linux/kernel 17bbb4b Iris/Venus PM and remove paths. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images remains pending. No LAVA jobs were submitted.

Additional local validation: SIGTERM during the controlled operation produces FAIL and restores the test-owned state without leaking the owned playback process or leaving the selected video driver unbound. These are host fixtures, not DUT crash/rebind results.

Reuse the existing decode verifier with isolated artifacts, resolve the device actually selected by FFmpeg, and restore only a lifecycle test-owned driver binding. Existing video runners retain their behavior.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add focused runtime-PM and driver-rebind decode tests. Use the existing native FFmpeg verifier to establish a working baseline and identify the hardware actually used, then require correct decoded frames on the same device after the lifecycle operation.

Runtime-PM validation leaves policy unchanged, observes suspend and requires active-time accounting to advance during the recovered decode. Driver rebind requires explicit opt-in and an isolated target, refuses existing device users, checks node teardown/re-registration and restores only its original binding on failure or interruption. No firmware files are moved and no drivers are selected from board names.

Depends on Video_Codec_Quality and shared lifecycle helpers from qualcomm-linux#643, without duplicating them. Optional image-provided prerequisites skip when absent. A previously supported decode becoming unavailable after mutation fails.

Validation: 42 host controls cover normal recovery, unsupported PM, busy devices, malformed/missing child results, changed device identity, unbind/bind failures, node renumbering, failed resume accounting, genuine kernel faults and cleanup. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Source walkthrough covered qualcomm-linux/kernel 17bbb4b Iris/Venus PM and remove paths. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images remains pending. No LAVA jobs were submitted.
Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant